home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / gnu / bash / bash_108 / src_d2.zoo / bash-d2.zoo / libgcc / ioctl.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-09-03  |  2.2 KB  |  108 lines

  1. #ifndef    _IOCTL_H
  2. # define _IOCTL_H
  3.  
  4. #if defined(__cplusplus)
  5. extern "C" {
  6. #endif
  7.  
  8. #define TIOCGETP    (('T'<< 8) | 0)
  9. #define TIOCSETP    (('T'<< 8) | 1)
  10. #define TIOCSETN    TIOCSETP
  11. #define TIOCGETC    (('T'<< 8) | 2)
  12. #define TIOCSETC    (('T'<< 8) | 3)
  13. #define TIOCGLTC    (('T'<< 8) | 4)
  14. #define TIOCSLTC    (('T'<< 8) | 5)
  15.  
  16. #ifdef __MINT__
  17. #define FIONREAD    (('F'<< 8) | 1)
  18. #define FIONWRITE    (('F'<< 8) | 2)
  19. #define TIOCGPGRP    (('T'<< 8) | 6)
  20. #define TIOCSPGRP    (('T'<< 8) | 7)
  21. #define TIOCFLUSH    (('T'<< 8) | 8)
  22. #define TIOCSTOP    (('T'<< 8) | 9)
  23. #define TIOCSTART    (('T'<< 8) | 10)
  24.  
  25. /* not yet implemented in MiNT */
  26. #define TIOCGETD    (('T'<<8) | 16)
  27. #define TIOCSETD    (('T'<<8) | 17)
  28. #define NTTYDISC    1
  29.   
  30. /* ioctl's to act on processes */
  31. #define PPROCADDR    (('P'<<8) | 1)
  32. #define PBASEADDR    (('P'<<8) | 2)
  33.  
  34. #endif /* __MINT__ */
  35.  
  36. struct tchars {
  37.     char    t_intrc;
  38.     char    t_quitc;
  39.     char    t_startc;
  40.     char    t_stopc;
  41.     char    t_eofc;
  42.     char    t_brkc;
  43. };
  44.  
  45. struct ltchars {
  46.     char    t_suspc;
  47.     char    t_dsuspc;
  48.     char    t_rprntc;
  49.     char    t_flushc;
  50.     char    t_werasc;
  51.     char    t_lnextc;
  52. };
  53.  
  54. #define    CRMOD        0x0001
  55. #define    CBREAK        0x0002
  56. #define    ECHO        0x0004
  57. #define    XTABS        0x0008
  58. #define    RAW        0x0010
  59. #define    LCASE        0x0020        /* does nothing (and never will!) */
  60. #define    TANDEM        0x0000        /* not needed */
  61. #define META        0x0100        /* extension: Alternate as meta key */
  62. #define PASS8           0x0100          /*            PASS8 Same as META    */
  63. #define EVENP        0x4000
  64. #define ODDP        0x8000
  65.  
  66. /* Only ones that are likely to be used are here */
  67. /* ok, but emacs thinks it knows their value */
  68. #define B50        1
  69. #define B75        2
  70. #define B110        3
  71. #define B135        4
  72. #define B150        5
  73. #define B200        6
  74. #define B300        7
  75. #define B600        8
  76. #define B1200        9
  77. #define B1800        10
  78. #define B2400        11
  79. #define B4800        12
  80. #define B9600        13
  81. #define B19200        14
  82. #define B38400        15
  83.  
  84. #define ANYP        (B300|B1200|B2400|B4800|B9600)
  85. #define ALLDELAY    0
  86.  
  87. struct sgttyb {
  88.     char    sg_ispeed;
  89.     char    sg_ospeed;
  90.     char    sg_erase;
  91.     char    sg_kill;
  92.     short    sg_flags;
  93. };
  94.  
  95. #ifndef _COMPILER_H
  96. #include <compiler.h>
  97. #endif
  98.  
  99. __EXTERN int ioctl __PROTO((int fd, int func, void *arg));
  100. __EXTERN int stty  __PROTO((int fd, struct sgttyb *tty));
  101. __EXTERN int gtty  __PROTO((int fd, struct sgttyb *tty));
  102.  
  103. #if defined(__cplusplus)
  104. }
  105. #endif
  106.  
  107. #endif    /* _IOCTL_H */
  108.